package edu.cn.neusoft.dm.showweb.util

/**
 * author:纷羽
 * create at 2018/7/13
 */

private val codeArray = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

fun tokenmaker(): String {
    val code = StringBuffer()
    for (i in 1..12) {
        code.append(codeArray[(Math.random() * codeArray.length).toInt()])
    }
    return code.toString()
}